remove a special character from string javascript

77

remove all sign that is not a-b in string js -

const str = "abc's test#s";
console.log(str.replace(/[^a-zA-Z ]/g, " "));

Comments

Submit
0 Comments